<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div class="post" v-cloak>
        <div class="cover">
            <img :src="post.cover + '?imageView2/2/w/400'" />
        </div>
        <div class="footer">
            <div class="title">{{ post.title }}</div>
            <div class="top">
                <div class="tags">
                    <div  class="tag-item">
                        {{ post.status }}
                    </div>
                </div>
                <div class="area">
                    <!-- {{ post.area_info.label}}
          {{ post.area_info.text}} -->
                </div>
                <div class="price">
                    <b> 起拍价
                        {{ post.start_price}}
                        元</b>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            loading: false,
        };
    },
    props: {
        post: { type: Object, default: null },
    },

    mounted: function () { },

    computed: {
        tags: function () {
            return this.post.tags_list.slice(0, 3);
        },
    },

    methods: {},
};
</script>

<style scoped>
.post {
    font-size: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 2px 6px 10px rgba(0,0,0,0.08);
    border:1px solid #f4f4f4;
}

.post .cover {
    height: 246px;
}


.post .cover img {
    width: 100%;
    height: 100%;

}

.post .area {
    font-size: 26px;
    color: #888888;
    margin: 20px 0;
}

.post .footer {
    padding: 24px 18px;
}

.post .tags {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
    min-height: 38px;
}

.post .tag-item:last-child {
    margin-right: 0px;
}

.post .tag-item {
    border: 2px solid #999;
    color: #999;
    padding: 6px 10px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}



.post .top b {
    color: red;
}

.post .title {
    margin: 0 0 24px 0;
    color: #000;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    overflow: hidden;
    word-wrap: break-word;
    text-overflow: ellipsis;
    white-space: nowrap;
}
</style>